﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SangoBang.Cards
{
    class GameCard : Card
    {
        public GameCard(String ActionType)
        {
            this.ActionType = actionDict[ActionType];
        }
        public ActionTypeEnum ActionType;
        public enum ActionTypeEnum
        {
            Kill = 0,
            Miss,
            Cure
        }
        static private Dictionary<String, ActionTypeEnum> actionDict = makeActionTypeDictionary();
        static Dictionary<String, ActionTypeEnum> makeActionTypeDictionary()
        {
            Dictionary<String, ActionTypeEnum> dict = new Dictionary<String, ActionTypeEnum>();
            dict.Add("Miss", ActionTypeEnum.Miss);
            dict.Add("Kill", ActionTypeEnum.Kill);
            dict.Add("Cure", ActionTypeEnum.Cure);

            return dict;
        }
        static private Dictionary<ActionTypeEnum, String> actionDictReverse = makeActionTypeDictionaryReverse();
        static Dictionary<ActionTypeEnum, String> makeActionTypeDictionaryReverse()
        {
            Dictionary<ActionTypeEnum, String> dict = new Dictionary<ActionTypeEnum, String>();
            dict.Add(ActionTypeEnum.Cure, "Cure");
            dict.Add(ActionTypeEnum.Miss, "Miss");
            dict.Add(ActionTypeEnum.Kill, "Kill");
            return dict;
        }
        public override String ToString()
        {
            return actionDictReverse[ActionType];
        }

    }
}
